package hr_project.hr.dao.emp;

import java.util.List;

import hr_project.hr.entity.Department;

public interface IDeptDao {

	//查看所有部门
	public List<Department> getAll();
	
	//获取一个
	public Department getByid(long id);
	
	//增加
	public void addDept(Department dept);
	
	//修改部门名
	public void modDept(Department dept);
	
	//删除部门
	public void delDept(long id);
	
	//获取所有非正常状态下的部门
	public List<Department> getAllNotnormal();
	
	//分页
	public List<Department> getAllByPage(int page,int pagesize);
	
	//总行数
	public int getTotalRow();
	
}
